package cool.zhoujie.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

import cool.zhoujie.Constant;

public class MyDBOpenHelper extends SQLiteOpenHelper {

    public static final String DB_NAME = "music.db";

    public static final int DB_VERSION = 1;

    public MyDBOpenHelper(@Nullable Context context) {
        super(context, DB_NAME, null, DB_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(Constant.SQL_CREATE_MUSIC);
        db.execSQL(Constant.SQL_CREATE_QUERY);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
